package com.ca.project.Server.Modules.TweetsImg.PO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @PACKAGE_NAME: com.health.project.Server.Modules.ProductImg.PO
 * @NAME: UploadImgPO
 * @USER: ASUS
 * @DATE: 6/9/2024
 * @TIME: 下午3:10
 **/
@Data
@ApiModel(value = "商品图片上传")
public class UploadImgPO implements Serializable {

    private static final long serialVersionUID = -6205251222355225120L;

    @ApiModelProperty(value = "文件实体", required = true)
    @NotNull(message = "文件实体不能为空")
    private MultipartFile file;

    @ApiModelProperty(value = "上传用户", required = true)
    @NotBlank(message = "上传用户不能为空")
    private String t_upload_user;

    @ApiModelProperty(value = "上传所属的商品名称", required = true)
    @NotBlank(message = "上传所属的商品名称不能为空")
    private String t_title;

}
